package com.ziyang;

import com.ziyang.dao.Impl.Business;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    @Test
    public void test1() {
        ApplicationContext ctx=
                new ClassPathXmlApplicationContext ("application.xml");
        Business sm=(Business)ctx.getBean("business");
        sm.save();

    }}
